<?php
function readFRSHTT($data) {
	//000001 = Frost
	//000010 = Rain
	//000100 = Snow
	//001000 = Hail
	//010000 = Thunder
	//100000 = Tornado
	$data = str_pad((int) $data,6,"0",STR_PAD_LEFT);
	//Tornado?
	if($data[0] == '1') echo 'Tornado/Heavy wind';
	//Thunder?
	if($data[1] == '1') echo 'Thunder';
	//Hail?
	if($data[2] == '1') echo 'Hail';
	//Snow?
	if($data[3] == '1') echo 'Snow';
	//Rain?
	if($data[4] == '1') echo 'Rain';
	//Frost?
	if($data[5] == '1') echo 'Frost';
}
?>